package com.cloudpivot.project.crmprojectnew.pojo.contact;

import com.cloudpivot.project.crmprojectnew.configuration.SerializerConfig.ContactSerializer;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/**
 * CRM联系人实体
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Contact {
    /**
     * 主键guid
     */
    @JsonProperty(value = "contactid")
    private String contactid;
    /**
     * 姓名
     */
    @JsonProperty(value = "lastname")
    private String lastname;
    /**
     * 性别
     */
    @JsonProperty(value = "gendercode")
    private Integer gendercode;
    /**
     * 称谓
     */
    private String new_call;
    /**
     * 新增用-客户名称
     */
    @JsonProperty(value = "parentcustomerid@odata.bind", access = JsonProperty.Access.READ_ONLY)
    private String parentcustomerid;
    /**
     * 读取用-客户名称
     */
    @JsonProperty(value = "_parentcustomerid_value")
    private String _parentcustomerid_value;
    /**
     * 微信
     */
    private String new_wechat;
    /**
     * 新增用 科室部门
     */
    @JsonProperty(value = "new_office@odata.bind", access = JsonProperty.Access.READ_ONLY)
    private String new_office;
    /**
     * 科室部门-读取用
     */
    @JsonProperty(value = "_new_office_value")
    private String _new_office_value;
    /**
     * 职务
     */
    @JsonProperty(value = "jobtitle")
    private String jobtitle;
    /**
     * 上级--新增用
     */
    @JsonProperty(value = "new_superior@odata.bind", access = JsonProperty.Access.READ_ONLY)
    private String new_superior;
    /**
     * 上级--读取用
     */
    @JsonProperty(value = "_new_superior_value")
    private String _new_superior_value;
    /**
     * 相关业务
     */
    private String new_relevant_business;
    /**
     * 地址
     */
    private String new_address;
    /**
     * 是否专家 1=是 0否
     */
    @JsonProperty(value = "new_expert")
    @JsonSerialize(using = ContactSerializer.class)
    private Object new_expert;

    /**
     * email
     */
    @JsonProperty(value = "emailaddress1")
    private String emailaddress1;
    /**
     * 座机
     */
    @JsonProperty(value = "telephone1")
    private String telephone1;
    /**
     * 手机
     */
    @JsonProperty(value = "mobilephone")
    private String mobilephone;
    /**
     * 爱好
     */
    private String new_like;
    /**
     * 身份证号
     */
    private String new_idcard;
    /**
     * 生日
     */
    @JsonProperty(value = "birthdate")
    private String birthdate;
    /**
     * 婚姻状况 1单身，2已婚，3离异，4丧偶
     */
    @JsonProperty(value = "familystatuscode")
    private Integer familystatuscode;
    /**
     * 毕业学校
     */
    private String new_school;
    /**
     * 毕业时间
     */
    private String new_graduation_date;
    /**
     * 专业背景
     */
    private String new_backgroud;
    /**
     * 研究方向
     */
    private String new_focus_on;
    /**
     * QQ
     */
    private String new_qq;
    /**
     * 禁忌
     */
    private String new_hate;
    /**
     * 说明
     */
    @JsonProperty(value = "description")
    private String description;

}
